/* CSS rules are kept repetitive so that you can get CSS rules for each button easily :) */

* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: #f1f9f9;
}

.gd {
  display: grid;
}

#container {
  width: 600px;
  margin: 80px auto;
  counter-reset: button-counter;
  grid-template-columns: repeat(3, 1fr);
}

.toggle-button-container {
  position: relative;
  width: 200px;
  height: 140px;
  box-sizing: border-box;
}

/*每个div都是固定大小*/
.toggle-button {
  position: relative; /*为了伪元素的角标进行绝对定位, 还有两个子div也是绝对定位*/
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}

/*在div中展示右下角自增角标*/
.toggle-button:before {
  counter-increment: button-counter; /*这条CSS规则用于增加名为button-counter的计数器的值。每次这个规则被应用到一个元素上时，button-counter的值就会增加1（默认增加量，但也可以指定增加的具体数值）。如果button-counter之前没有被定义，那么它会被自动初始化为0，然后每次应用这条规则时增加。  */
  content: counter(button-counter); /*content属性通常与伪元素（如::before或::after）一起使用，用于在这些伪元素内生成内容。在这里，counter(button-counter)函数被用来获取button-counter计数器的当前值，并将这个值作为内容插入到应用了这条规则的元素或伪元素中。这意味着你可以看到button-counter的当前数值被显示出来。  */
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1; /*数值（无单位）：表示行高是字体大小的倍数。例如，line-height: 1.5;表示行高是字体大小的1.5倍。  */
  padding: 5px;
}

 /*top: 0;、right: 0;、bottom: 0;、left: 0;：这些属性将元素的四个边（上、右、下、左）分别与其包含块的对应边对齐。由于这四个值都被设置为 0，这意味着 .knob 和 .btn-bg 类的元素将被拉伸以完全填充其包含块的尺寸。  */
.knob,
.btn-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/*
设置每个方框中按钮的大小，
有固定的长宽
*/
.btn {
  position: relative;
  top: 50%;
  width: 74px;
  height: 36px;
  margin: -20px auto 0 auto; /*这个属性设置了元素的外边距。-20px 是上边距，表示元素会向上移动20像素（这通常用于垂直居中，但在这里与 top: 50%; 结合使用时需要特别注意）。auto 值用于左右外边距，这会使元素在其父元素内水平居中。下边距被设置为 0。*/
  overflow: hidden;
}

/*一部分.btn元素是弧形的开关，所以加了一个btn-pill类，它里面的按钮btn-bg是圆形的，设置他们的border-radius*/
.btn.btn-pill,
.btn.btn-pill > .btn-bg {
  border-radius: 100px;
}

/*一部分.btn元素是方形的开关*/
.btn.btn-rect {
  border-radius: 2px;
}

.checkbox {
  position: relative; /*在这里，它主要用于为 z-index 提供一个定位上下文。*/
  /*width: 100%; 和 height: 100%;：这些属性将元素的宽度和高度分别设置为其父元素宽度和高度的100%。这意味着 .checkbox 元素将尝试填充其父元素的整个可用空间。*/
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0; /*这个属性将元素的透明度设置为0，使其完全透明。这意味着 .checkbox 元素本身不会在页面上可见，但它仍然占据空间并可以响应鼠标事件（因为 cursor: pointer;）。*/
  cursor: pointer; /*这个属性设置鼠标指针悬停在 .checkbox 元素上时显示为指针样式（通常是一个小手图标），表明该元素是可点击的。*/
  z-index: 3;  /* 设置元素的堆叠顺序为3 */
}

.knob {
  z-index: 2;
}

/*整个btn的背景靠.btn-bg来维护的，背景色为浅蓝色*/
.btn-bg {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 1 */
#button-1 .knob:before {
  content: "YES";
  /*这是YES按钮，用伪元素内容的方式展示的，它在整个btn（这里id是button-1）元素中，绝对定位从右上角4px开始
  在通过width、height、padding、border-redius保证是一个圆，正好嵌在btn中。  */
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knob:before { /*在ID为button-1的元素内部，选择所有处于选中状态的.checkbox元素紧接着的兄弟元素中类名为.knob的元素的:before伪元素。*/
  content: "NO";
  left: 42px;
  background-color: #f44336;
}

/*点击checkbox后，.knob伪类content修改，整个btn的背景靠.btn-bg来维护的，背景色改为浅红色*/
#button-1 .checkbox:checked ~ .btn-bg { /*在ID为button-1的元素内部，选择所有处于选中状态的.checkbox元素之后的所有兄弟元素中类名为.btn-bg的元素。*/
  background-color: #fcebeb;
}

#button-1 .knob,
#button-1 .knob:before,
#button-1 .btn-bg {
  transition: 0.3s ease all;
}

/* Button 2 */
#button-2 .knob:before,
#button-2 .knob:after {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s ease all;
}

#button-2 .knob:before {
  content: "YES";
}

#button-2 .knob:after {
  content: "NO";
}

#button-2 .knob:after {
  right: -28px;
  left: auto;
  background-color: #f44336;
}

#button-2 .checkbox:checked + .knob:before {
  left: -28px;
}

#button-2 .checkbox:checked + .knob:after {
  right: 4px;
}

#button-2 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 3 */
#button-3 .knob:before {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

#button-3 .checkbox:active + .knob:before {
  width: 46px;
  border-radius: 100px;
}

#button-3 .checkbox:checked:active + .knob:before {
  margin-left: -26px;
}

#button-3 .checkbox:checked + .knob:before {
  content: "NO";
  left: 42px;
  background-color: #f44336;
}

#button-3 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 4 */
#button-4 .knob:before,
#button-4 .knob:after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-4 .knob:before {
  content: "YES";
}

#button-4 .knob:after {
  content: "NO";
}

#button-4 .knob:after {
  top: -28px;
  right: 4px;
  left: auto; /*因为.knob的before和after两个伪元素开始有些属性一起设置的，前面设置了left:4px，这边单独设置after要覆盖之前设置的left，所以用left:auto*/
  background-color: #f44336;
}

#button-4 .checkbox:checked + .knob:before {
  top: -28px;
}

#button-4 .checkbox:checked + .knob:after {
  top: 4px;
}

#button-4 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 5 */
#button-5 {
  perspective: 60px;
  overflow: visible;
}

#button-5 .knob:before,
#button-5 .knob span {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-5 .knob:before {
  background-color: #03a9f4;
}

#button-5 .knob span:before {
  content: "YES";
}

#button-5 .knob:before,
#button-5 .btn-bg {
  transform: rotateY(0);
  transform-origin: center;
}

#button-5 .checkbox:checked + .knob:before,
#button-5 .checkbox:checked + .knob span {
  left: 42px;
}

#button-5 .checkbox:checked + .knob:before {
  transform: rotateY(180deg);
  background-color: #f44336;
}

#button-5 .checkbox:checked + .knob span:before {
  content: "NO";
  left: 42px;
}

#button-5 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
  transform: rotateY(-180deg);
}

#button-5 .knob,
#button-5 .knob:before,
#button-5 .btn-bg {
  transition: 0.3s ease all;
}

/* Button 6 */
#button-6 {
  overflow: visible;
}

#button-6 .knob:before {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
}

#button-6 .btn-bg,
#button-6 .knob,
#button-6 .knob:before {
  transform: rotateZ(0);
  transition: 0.4s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-6 .checkbox:checked + .knob {
  transform: rotateZ(-180deg);
}

#button-6 .checkbox:checked + .knob:before {
  content: "NO";
  background-color: #f44336;
  transform: rotateZ(180deg);
}

#button-6 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
  transform: rotateZ(180deg);
}

/* Button 7 */
#button-7 .knob:before,
#button-7 .knob:after,
#button-7 .knob span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 50%;
}

#button-7 .knob:before {
  content: "YES";
  left: 4px;
  color: #fff;
  opacity: 1;
}

#button-7 .knob:after {
  content: "N";
  left: 42px;
  color: #fff;
  width: 14px;
  text-align: left;
  padding: 9px 7px;
  background-color: #f44336;
  opacity: 0;
}

#button-7 .knob:before,
#button-7 .knob:after {
  transition: 0.3s ease all;
  z-index: 2;
}

#button-7 .knob span {
  left: 4px;
  background-color: #03a9f4;
  transition: 0.2s ease all;
  z-index: 1;
}

#button-7 .checkbox:checked + .knob:before {
  opacity: 0;
}

#button-7 .checkbox:checked + .knob:after {
  opacity: 1;
}

#button-7 .checkbox:checked + .knob span {
  top: 14px;
  left: 56px;
  width: 2px;
  height: 2px;
  padding: 3px;
  background-color: #fff;
  z-index: 3;
}

#button-7 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 8 */
#button-8 .knob:before,
#button-8 .knob:after,
#button-8 .knob span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 50%;
  transition: 0.3s ease all;
}

#button-8 .knob:before {
  content: "YES";
  color: #fff;
  left: 4px;
}

#button-8 .knob:after {
  content: "NO";
  left: 42px;
  color: #fff;
  background-color: #f44336;
  opacity: 0;
}

#button-8 .knob:before,
#button-8 .knob:after {
  z-index: 2;
}

#button-8 .knob span {
  left: 4px;
  background-color: #03a9f4;
  z-index: 1;
}

#button-8 .checkbox:checked + .knob:before {
  opacity: 0;
}

#button-8 .checkbox:checked + .knob:after {
  opacity: 1;
}

#button-8 .checkbox:checked + .knob span {
  background-color: #fcebeb;
  transform: scale(4);
}

/* Button 9 */
#button-9 .knob:before,
#button-9 .knob:after,
#button-9 .knob span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 50%;
  transition: 0.4s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-9 .knob:before {
  content: "YES";
  left: 4px;
}

#button-9 .knob:after {
  content: "NO";
  right: -24px;
}

#button-9 .knob:before,
#button-9 .knob:after {
  color: #fff;
  z-index: 2;
}

#button-9 .knob span {
  left: 4px;
  background-color: #03a9f4;
  z-index: 1;
}

#button-9 .checkbox:checked + .knob:before {
  left: -24px;
}

#button-9 .checkbox:checked + .knob:after {
  right: 4px;
}

#button-9 .checkbox:checked + .knob span {
  left: 42px;
  background-color: #f44336;
}

#button-9 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 10 */
#button-10 .knob:before,
#button-10 .knob:after,
#button-10 .knob span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 2px;
  transition: 0.3s ease all;
}

#button-10 .knob:before {
  content: "";
  left: 4px;
  background-color: #03a9f4;
}

#button-10 .knob:after {
  content: "NO";
  right: 4px;
  color: #4e4e4e;
}

#button-10 .knob span {
  display: inline-block;
  left: 4px;
  color: #fff;
  z-index: 1;
}

#button-10 .checkbox:checked + .knob span {
  color: #4e4e4e;
}

#button-10 .checkbox:checked + .knob:before {
  left: 42px;
  background-color: #f44336;
}

#button-10 .checkbox:checked + .knob:after {
  color: #fff;
}

#button-10 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 11 */
#button-11 {
  overflow: visible;
}

#button-11 .knob {
  perspective: 70px;
}

#button-11 .knob:before,
#button-11 .knob:after,
#button-11 .knob span {
  position: absolute;
  top: 4px;
  border-radius: 2px;
}

#button-11 .knob:before,
#button-11 .knob:after {
  width: 20px;
  height: 10px;
  color: #4e4e4e;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
}

#button-11 .knob:before {
  content: "YES";
  left: 4px;
}

#button-11 .knob:after {
  content: "NO";
  right: 4px;
}

#button-11 .knob span {
  right: 4px;
  width: 33px;
  height: 28px;
  background-color: #03a9f4;
  transform: rotateY(0);
  transform-origin: 0% 50%;
  transition: 0.6s ease all;
  z-index: 1;
}

#button-11 .checkbox:checked + .knob span {
  transform: rotateY(-180deg);
  background-color: #f44336;
}

#button-11 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 12 */
#button-12 .knob:before,
#button-12 .knob:after,
#button-12 .knob span,
#button-12 .knob span:before,
#button-12 .knob span:after {
  position: absolute;
  top: 4px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  border-radius: 2px;
  transition: 0.3s ease all;
}

#button-12 .knob:before {
  content: "YES";
  left: 4px;
}

#button-12 .knob:after {
  content: "NO";
  right: 4px;
}

#button-12 .knob:before,
#button-12 .knob:after {
  width: 27px;
  height: 10px;
  color: #4e4e4e;
  padding: 9px 3px;
  z-index: 1;
}

#button-12 .knob span {
  display: inline-block;
  z-index: 2;
}

#button-12 .knob span,
#button-12 .knob span:before,
#button-12 .knob span:after {
  width: 20px;
  height: 10px;
  padding: 9px 4px;
}

#button-12 .knob span:before,
#button-12 .knob span:after {
  content: "";
  top: 0;
}

#button-12 .knob span:before {
  left: -28px;
  background-color: #f44336;
}

#button-12 .knob span:after {
  right: -42px;
  background-color: #03a9f4;
}

#button-12 .checkbox:checked + .knob span:before {
  left: 4px;
}

#button-12 .checkbox:checked + .knob span:after {
  right: -74px;
}

#button-12 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 13 */
#button-13 .knob:before,
#button-13 .knob:after,
#button-13 .knob span {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 2px;
  transition: 0.3s ease all;
}

#button-13 .knob:before,
#button-13 .knob:after {
  color: #4e4e4e;
  z-index: 1;
}

#button-13 .knob:before {
  content: "YES";
  left: 4px;
}

#button-13 .knob:after {
  content: "NO";
  right: 4px;
}

#button-13 .knob span {
  width: 25px;
  left: 37px;
  background-color: #03a9f4;
  z-index: 2;
}

#button-13 .checkbox:checked + .knob span {
  left: 4px;
  background-color: #f44336;
}

#button-13 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 14 */
#button-14 .knob:before,
#button-14 .knob:after,
#button-14 .knob span:before,
#button-14 .knob span:after {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  border-radius: 2px;
  transition: 0.3s ease all;
}

#button-14 .knob:before,
#button-14 .knob:after {
  color: #4e4e4e;
  z-index: 1;
}

#button-14 .knob:before {
  content: "YES";
  left: 4px;
}

#button-14 .knob:after {
  content: "NO";
  right: 4px;
}

#button-14 .knob span {
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#button-14 .knob span:before {
  left: 4px;
  top: -28px;
  background-color: #f44336;
}

#button-14 .knob span:after {
  top: 4px;
  left: 39px;
  background-color: #03a9f4;
}

#button-14 .knob span:before,
#button-14 .knob span:after {
  content: "";
  width: 23px;
  z-index: 2;
}

#button-14 .checkbox:checked + .knob span:before {
  top: 4px;
}

#button-14 .checkbox:checked + .knob span:after {
  top: -28px;
}

#button-14 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 15 */
#button-15 .knob:before,
#button-15 .knob:after {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  opacity: 1;
  border-radius: 2px;
  transform: scale(1);
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-15 .knob:before {
  content: "YES";
  left: 4px;
  background-color: #03a9f4;
}

#button-15 .knob:after {
  content: "NO";
  right: 4px;
  opacity: 0;
  transform: scale(4);
  background-color: #f44336;
}

#button-15 .checkbox:checked + .knob:before {
  opacity: 0;
  transform: scale(4);
}

#button-15 .checkbox:checked + .knob:after {
  opacity: 1;
  transform: scale(1);
}

#button-15 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 16 */
#button-16 .knob:before {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 2px;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

#button-16 .checkbox:active + .knob:before {
  width: 46px;
}

#button-16 .checkbox:checked:active + .knob:before {
  margin-left: -26px;
}

#button-16 .checkbox:checked + .knob:before {
  content: "NO";
  left: 42px;
  background-color: #f44336;
}

#button-16 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 17 */
#button-17 .knob:before,
#button-17 .knob span {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
}

#button-17 .knob:before {
  transition: 0.3s ease all, left 0.5s cubic-bezier(0.18, 0.89, 0.35, 1.15);
  z-index: 2;
}

#button-17 .knob span {
  background-color: #03a9f4;
  border-radius: 2px;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
  z-index: 1;
}

#button-17 .checkbox:checked + .knob:before {
  content: "NO";
  left: 42px;
}

#button-17 .checkbox:checked + .knob span {
  left: 42px;
  background-color: #f44336;
}

#button-17 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

/* Button 18 */
#button-18 .knob:before,
#button-18 .knob span {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  background-color: #03a9f4;
  border-radius: 2px;
}

#button-18 .knob:before {
  top: 50%;
  left: 8px;
  width: 20px;
  height: 10px;
  margin-top: -5px;
  background-color: transparent;
  z-index: 2;
}

#button-18 .knob span {
  width: 20px;
  height: 10px;
  padding: 9px 4px;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
  z-index: 1;
}

#button-18 .checkbox:active + .knob:before {
  left: 10px;
  width: 46px;
  height: 4px;
  color: transparent;
  margin-top: -2px;
  background-color: #0095d8;
  transition: 0.3s ease all;
  overflow: hidden;
}

#button-18 .checkbox:active + .knob span {
  width: 58px;
}

#button-18 .checkbox:checked:active + .knob:before {
  left: auto;
  right: 10px;
  background-color: #d80000;
}

#button-18 .checkbox:checked:active + .knob span {
  margin-left: -38px;
}

#button-18 .checkbox:checked + .knob:before {
  content: "NO";
  left: 47px;
}

#button-18 .checkbox:checked + .knob span {
  left: 42px;
  background-color: #f44336;
}

#button-18 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}
